{if $albums}
<div class="container home-title">
	<h3 class="special">
		<span class="special-flag special-featured">{lang hot}{lang album}</span>
		 <a href="{url album/index}" class="date-more pull-right">{lang more_tip_2}</a>
	</h3> 
</div>
<div class="container home-albums">
	{loop $albums $key $album}
	<div class="span3 round-shadow home-album {$album['ml']}">
		<div class="album-header">
			<a href="{$album['link']}"><strong>{$album['album_title']}</strong></a>
		</div>
		<ul class="image-list cell_{$album['albumtype']} puzzing">
		{loop $album['covers'] $cover}
			{if $cover['image']} 
			<li class="{$cover['class']}">
				<img src="$cover['image']"  onerror="this.src='{baseurl}assets/img/blank.png';"/>
			</li>
			{else}
			<li class="{$cover['class']}"></li>
			{/if}
		{/loop}
			<a href="{$album['link']}" class="puzzing-txt">	
				<strong>{echo sysSubStr($album['album_title'], 30,true)}</strong>
				<span class="txt">
				{echo sysSubStr($album['intro'], 300,true)}
				</span>
				<em>{date $album['create_time']}</em>
			</a>	
	    </ul>
		<div class="album-footer">
			<span class="pull-left"><a href="{url pub/index?uid=$album['user_id']}" data-user-id="{$album['user_id']}" data-user-profile="1">{$album['nickname']}</a></span>
			<ul class="tools pull-right">
				<li class="comments">
					<a href="javascript:void(0);">{$album['total_share']}</a>
				</li>
				<li class="fav">
					<a href="javascript:void(0);">{$album['total_like']}</a>
				</li>
			</ul>
		</div>
	</div>
	{/loop}
</div>
{/if}